package cn.tedu.charging.order.feign;

import cn.tedu.charging.common.pojo.param.ProgressCostParam;
import cn.tedu.charging.common.pojo.vo.ProgressCostVO;
import cn.tedu.charging.common.pojo.vo.VehicleVO;
import cn.tedu.charging.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 调用服务 charging-cost
 */
@FeignClient(value="charging-cost")
public interface CostClient {

    /**
     * 计算订单费用
     *
     * 接口地址 /cost/bill/calculate
     * 请求方式 POST @PostMapping
     * 请求参数 @RequestBody ProgressCostParam对象
     * 返回值 JsonResult<ProgressCostVO>
     *
     * @param cost
     * @return
     */
    @PostMapping("/cost/bill/calculate")
    JsonResult<ProgressCostVO> calculateCost(@RequestBody ProgressCostParam cost);


}
